package com.edu.cdp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName goods
 */
@TableName(value ="goods")
@Data
public class Goods implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "商品id")
    private Integer id;

    /**
     * 
     */
    @Schema(description = "商品类别ID")
    private Integer categoryId;

    /**
     * 
     */
    @Schema(description = "商品名称")
    private String goodsName;

    /**
     * 
     */
    @Schema(description = "商品价格")
    private Double price;

    /**
     * 
     */
    @Schema(description = "商品库存数量")
    private Integer stock;

    /**
     * 
     */
    @Schema(description = "商品图片路径，此处只存放地址，修改和添加通过file上传实现")
    private String goodImage;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}